//
//  SCSettingTF.m
//  LGInternationalEnglishTestingStudent
//
//  Created by Chao Sheng on 2023/4/18.
//

#import "SCSettingTF.h"

@implementation SCSettingTF

- (instancetype)init {
    if(self = [super init]) {
        self.clearButtonMode = UITextFieldViewModeWhileEditing;
        self.edge = UIEdgeInsetsMake(0, 12, 0, 12);
    }
    return self;
}

- (CGRect)textRectForBounds:(CGRect)bounds {
    CGRect rect = [super textRectForBounds:UIEdgeInsetsInsetRect(bounds, self.edge)];
    return rect;
}

- (CGRect)editingRectForBounds:(CGRect)bounds {
    CGRect rect = [super textRectForBounds:UIEdgeInsetsInsetRect(bounds, self.edge)];
    return rect;
}

- (CGRect)placeholderRectForBounds:(CGRect)bounds {
    CGRect rect = [super textRectForBounds:UIEdgeInsetsInsetRect(bounds, self.edge)];
    return rect;
}

@end
